package com.flyqiu.form.model.vo;


import com.flyqiu.form.model.SqlColumnModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class SqlColumnVo extends SqlColumnModel {
    @Schema(title = "旧列名")
    private String oldProp;

    public SqlColumnVo() {

    }

    public SqlColumnVo(SqlColumnModel model) {
        id = model.getId();
        label = model.getLabel();
        prop = model.getProp();
        sqlDataType = model.getSqlDataType();
        sqlDataLength = model.getSqlDataLength();
        precision = model.getPrecision();

    }
}
